home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2006 October / wn148cd2.iso / Windows / Se divertir / MediaPortal / Setup.msi / _89D652C6F4C5CB6EFB7B225B3B3ACD05 / _C113FED33DCA4A08986E73BA82D37EED < prev    next >
Extensible Markup Language  |  2005-10-15  |  5KB  |  109 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <!-- The grabber xml file describes how to get the program listing infomation from the page. -->
  4. <!-- It has the following format: -->
  5.  
  6. <profile>
  7.  
  8. <!-- Channel section lists all the channels available from this website. -->
  9.  
  10.   <section name="ChannelList">
  11.  
  12.     <entry name=".unique channel id...">.channel id as used by web site.</entry>    <!-- Full channel name here -->
  13.  
  14.   </section>
  15.  
  16. <!-- Formating of Listing -->
  17. <!-- This section describes how to find the program infomation -->
  18.   <section name="Listing">
  19.  
  20. <!-- _________________________ -->
  21. <!-- Base URL .. must start with 'http://' and have '/' on the end -->
  22.     <entry name="BaseURL">http://www.tvsite.tv/guide/</entry>
  23.  
  24. <!-- _________________________ -->
  25. <!-- Search URL .. must have #ID - the channel id -->
  26. <!-- Can also have any of the following: -->
  27. <!-- #LIST_OFFSET    - offset position in a list longer then one page -->
  28. <!-- #DAY_OFFSET     - offset of the day from today (0) -->
  29. <!-- #YYYY         - year -->
  30. <!-- #MONTH         - month full name (ie January) -->
  31. <!-- #MM         - month with leading 0 -->
  32. <!-- #_M         - month without leading 0 -->
  33. <!-- #WEEKDAY        - day of week full name (ie Monday) -->
  34. <!-- #DD         - day with leading 0 -->
  35. <!-- #_D         - day without leading 0 -->
  36. <!-- replace & with & -->
  37.     <entry name="SearchURL">search.php3?channel=#ID&limit=#LIST_OFFSET</entry>
  38.  
  39. <!-- _________________________ -->
  40. <!-- Maximum Number of listings per page -->
  41. <!-- Optional only required if a single day's listing are over more then on page -->
  42. <!-- Used together with #LIST_OFFSET -->
  43.     <entry name="MaxCount">10</entry>
  44.  
  45. <!-- _________________________ -->
  46. <!-- Unique Listing Start string -->
  47. <!-- speeds search by reducing, search area. Search string from start of HTML source -->
  48. <!-- Optional - If left out defaults to "<body" -->
  49.     <entry name="Start"><!-- Vorschlag Output DB start--></entry>
  50.  
  51. <!-- _________________________ -->
  52. <!-- Unique Listing End string -->
  53. <!-- speeds search by reducing, search area. Search string from postion of start string -->
  54. <!-- Optional - If left out defaults to "</body" -->
  55.     <entry name="End"><!-- Vorschlag Include output DB ende --></entry>
  56.  
  57. <!-- Template of the Listing information -->
  58. <!-- This give the layout of the program listing in HTML -->
  59. <!-- Currently only looks at the following tags: table, tr, td and br -->
  60. <!-- These tags can be simplied by remove everything after the tag name. ie <tr xxx> = <tr> -->
  61. <!-- All other tags can be removed. -->
  62. <!-- Required: -->
  63. <!-- <#TITLE>        - program name/title -->
  64. <!-- <#START>         - program start time -->
  65. <!-- Optional: -->
  66. <!-- <#END>         - program end time -->
  67. <!-- <#DESCRIPTION>    - program describtion text -->
  68. <!-- <#DAY>         - program day (required if not part of page lookup) -->
  69. <!-- <#MONTH>         - program month (required if not part of page lookup) -->
  70. <!-- All '<' and '>' must be replaced with < and > -->
  71. <!-- tabs and newlines are ignored so these can be used for formating -->
  72.  
  73.     <entry name="Template">
  74. <!-- Example from www.fernsehen.ch -->
  75.     <tr>
  76.     <td>xxx </td>
  77.     <td>Samstag<br><#DAY>. <#MONTH><br><#START> - <#END><br></td>
  78.     <td><#NAME><br><#TEXT></td>
  79.     </tr>
  80. <!-- Example from www.tvtoday.de -->
  81.     <table>
  82.     <tr>
  83.     <td></td>
  84.     <td><#START></td>
  85.     <td><#NAME>(xxx) 38 Min. bis <#END>   Showview  80-45-935<br><#TEXT><br> <br></td>
  86.     </tr>
  87.     </table>
  88.     </entry>
  89.   </section>
  90.   <section name="DateTime">
  91.  
  92. <!-- If the months are listed on the page as text they must be entered here. -->
  93. <!-- If the page uses day offset or yyyy/mm/dd to load the page then this is not required -->
  94. <!-- enter 'no' for Months and leave the rest out. -->
  95.     <entry name="Months">yes</entry>
  96.     <entry name="Januar">1</entry>
  97.     <entry name="Februar">2</entry>
  98.     <entry name="März">3</entry>
  99.     <entry name="April">4</entry>
  100.     <entry name="Mai">5</entry>
  101.     <entry name="Juni">6</entry>
  102.     <entry name="Juli">7</entry>
  103.     <entry name="August">8</entry>
  104.     <entry name="September">9</entry>
  105.     <entry name="Oktober">10</entry>
  106.     <entry name="November">11</entry>
  107.     <entry name="Dezember">12</entry>
  108.   </section>
  109. </profile>